package softtech.apps.model;

public class Product extends BaseProduct {
	private String pDescription;
	private String pImages;
	private String pOtherInfo;
	private String pTimeCreate;
	/**
	 * Ham khoi tao dung cho viec cap nhat du lieu
	 * */
	public Product(int pId, int pCategory, int pColor, String pName,
			float pSize, float pPrice, String pDescription, String pImages,
			String pOtherInfo, String pTimeCreate,int pServerId, int pUserId) {
		super(pId, pCategory, pColor, pName, pSize, pPrice,pServerId, pUserId);
		this.pDescription = pDescription;
		this.pImages = pImages;
		this.pOtherInfo = pOtherInfo;
		this.pTimeCreate = pTimeCreate;
	}
	/**
	 * Ham khoi tao dung cho viec them moi Product
	 * @param pCategory,pColor,pName,pSize,pPrice,pDescription,pImages,pOtherInfo,pTimeCreate
	 * */
	public Product(int pCategory, int pColor, String pName,
			float pSize, float pPrice, String pDescription, String pImages,
			String pOtherInfo, String pTimeCreate,int pServerId, int pUserId) {
		super(pCategory, pColor, pName, pSize, pPrice,pServerId, pUserId);
		this.pDescription = pDescription;
		this.pImages = pImages;
		this.pOtherInfo = pOtherInfo;
		this.pTimeCreate = pTimeCreate;
	}
	
	/**
	 * Ham khoi tao cac doi tuong bat buoc cua doi tuong Product
	 * */
	public Product(int pCategory, int pColor, String pName,
			float pSize, float pPrice, String pDescription, String pImages, String pTimeCreate,int pServerId, int pUserId) {
		super(pCategory, pColor, pName, pSize, pPrice,pServerId, pUserId);
		this.pDescription = pDescription;
		this.pImages = pImages;
		this.pTimeCreate = pTimeCreate;
	}
	public int getpId() {
		return pId;
	}

	public void setpId(int pId) {
		this.pId = pId;
	}

	public String getpDescription() {
		return pDescription;
	}

	public void setpDescription(String pDescription) {
		this.pDescription = pDescription;
	}

	public String getpImages() {
		return pImages;
	}

	public void setpImages(String pImages) {
		this.pImages = pImages;
	}

	public String getpOtherInfo() {
		return pOtherInfo;
	}

	public void setpOtherInfo(String pOtherInfo) {
		this.pOtherInfo = pOtherInfo;
	}

	public String getpTimeCreate() {
		return pTimeCreate;
	}

	public void setpTimeCreate(String pTimeCreate) {
		this.pTimeCreate = pTimeCreate;
	}
}
